/*
 *   AS IS License
 * ==Naive Coders==
 */
package com.naivecoders.refex.functions;

import com.naivecoders.refex.FunctionFactory;

/**
 *
 * @author gbu.000
 */
public class AppendFunction extends AbstractFunction {

    public AppendFunction(FunctionFactory origin) {
        super(origin);
    }

    @Override
    public AbstractFunction evaluate(ListFunction x) throws InvocationException {
        return listArg(x, 0).append(arg(x, 1));
    }
}
